package com.hwj.service;

import com.hwj.entity.Comment;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CommentService {
    List<Comment> selectForUser(Long postId);

    List<Comment> selectForChildList(Comment comment);

    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);


    Long selectCount(Long postId);
}
